pipeline {
    agent any
    stages {

        stage("CheckOut") {
            steps {
                script {
                    println("123")
                }
            }
        }
    }

    post {
        success {
            emailext(
                    subject: "==SUCCESS==【项目构建通知】$env.JOB_NAME - Build # $env.BUILD_NUMBER",
                    body: """

                    """,
                    to: "125139887@qq.com,87993729@qq.com",
            )
        }
        failure {
            emailext(
                    subject: "==FAIL==【项目构建通知】$env.JOB_NAME - Build # $env.BUILD_NUMBER",
                    body: """
                    """,
                    to: "125139887@qq.com,87993729@qq.com",
            )
        }
    }

}